/*  
 * Copyright @ 2020 xintuoinfo.com.cn
 * koala_platform_std 下午3:19:53  
 * All right reserved.  
 *  
*/
      
package com.xtsoft.platform.globe.enums;
/**  
 * <p> 类、接口等说明  </p>
 * @author: defencez
 * @createTime: 2020年5月9日 下午3:19:53  
 * @since:  
 * @version: v1.0    
*/

public enum ResourceType {
	Url("Url",0),  //超链接
	Menu("Menu",1),  //菜单
	Button("Button",2), //按钮
	Other("Other",3),  //其他
	ViewMenu("ViewMenu",4); //视图菜单
	
	private String strValue;
	private int intValue;
	
	ResourceType(String strValue,int intValue){
		this.strValue = strValue;
		this.intValue = intValue;
	}
	
	public String getStrValue() {
		return strValue;
	}
	
	public int getIntValue() {
		return intValue;
	}

	ResourceType getEnumValue(int value) {
		switch (value) {
			case 0: return Url;
			case 1: return Menu;
			case 2: return Button;
			case 3: return Other;
			case 4: return ViewMenu;
			default: return null;

		}
	}
}
  
    